<?php
namespace app\common\command;
 
use app\api\model\User;
use EasyAdmin\console\CliEcho;
use EasyAdmin\tool\CommonTool;
use think\console\Command;
use think\console\Input;
use think\console\Output;

class CruiseBottomleft extends Command
{

    protected function configure()
    {
        $this->setName('CruiseBottomleft')
            ->setDescription('摄像头巡检左下');
    }
    protected function execute(Input $input, Output $output)
    {
        $output->writeln("========CRMstatus========" . date('Y-m-d H:i:s'));
            $test = new User();
            $res = $test->cruise_bottomleft();
            if ($res['code'] == 1) {
                $output->writeln("========ok========". date('Y-m-d H:i:s'));
            } else {
                $output->writeln("========no========". date('Y-m-d H:i:s'));
            }
        $output->writeln("========CRMend========". date('Y-m-d H:i:s'));
    }

}